package org.cainiao.basic.concurrent.juc.collection;

import java.util.concurrent.ConcurrentHashMap;

/**
 * <br />
 * <p>
 * Author: Cai Niao(wdhlzd@163.com)<br />
 */
public class ConcurrentHashMapTest {

    public static void main(String[] args) {
        test();
    }

    private static void test() {
        ConcurrentHashMap<String, String> map = new ConcurrentHashMap<>();
        map.computeIfAbsent("key1", key -> key + "value1");
    }
}
